package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuperPickupPointMapper;
import com.ruoyi.system.domain.SuperPickupPoint;
import com.ruoyi.system.service.ISuperPickupPointService;

/**
 * 自提点:自提点信息,字段包括id,名称,地址电话Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
@Service
public class SuperPickupPointServiceImpl implements ISuperPickupPointService 
{
    @Autowired
    private SuperPickupPointMapper superPickupPointMapper;

    /**
     * 查询自提点:自提点信息,字段包括id,名称,地址电话
     * 
     * @param id 自提点:自提点信息,字段包括id,名称,地址电话主键
     * @return 自提点:自提点信息,字段包括id,名称,地址电话
     */
    @Override
    public SuperPickupPoint selectSuperPickupPointById(Long id)
    {
        return superPickupPointMapper.selectSuperPickupPointById(id);
    }

    /**
     * 查询自提点:自提点信息,字段包括id,名称,地址电话列表
     * 
     * @param superPickupPoint 自提点:自提点信息,字段包括id,名称,地址电话
     * @return 自提点:自提点信息,字段包括id,名称,地址电话
     */
    @Override
    public List<SuperPickupPoint> selectSuperPickupPointList(SuperPickupPoint superPickupPoint)
    {
        return superPickupPointMapper.selectSuperPickupPointList(superPickupPoint);
    }

    /**
     * 新增自提点:自提点信息,字段包括id,名称,地址电话
     * 
     * @param superPickupPoint 自提点:自提点信息,字段包括id,名称,地址电话
     * @return 结果
     */
    @Override
    public int insertSuperPickupPoint(SuperPickupPoint superPickupPoint)
    {
        return superPickupPointMapper.insertSuperPickupPoint(superPickupPoint);
    }

    /**
     * 修改自提点:自提点信息,字段包括id,名称,地址电话
     * 
     * @param superPickupPoint 自提点:自提点信息,字段包括id,名称,地址电话
     * @return 结果
     */
    @Override
    public int updateSuperPickupPoint(SuperPickupPoint superPickupPoint)
    {
        return superPickupPointMapper.updateSuperPickupPoint(superPickupPoint);
    }

    /**
     * 批量删除自提点:自提点信息,字段包括id,名称,地址电话
     * 
     * @param ids 需要删除的自提点:自提点信息,字段包括id,名称,地址电话主键
     * @return 结果
     */
    @Override
    public int deleteSuperPickupPointByIds(Long[] ids)
    {
        return superPickupPointMapper.deleteSuperPickupPointByIds(ids);
    }

    /**
     * 删除自提点:自提点信息,字段包括id,名称,地址电话信息
     * 
     * @param id 自提点:自提点信息,字段包括id,名称,地址电话主键
     * @return 结果
     */
    @Override
    public int deleteSuperPickupPointById(Long id)
    {
        return superPickupPointMapper.deleteSuperPickupPointById(id);
    }
}
